<template>
  <div>
    <el-menu
      default-active="1"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      @select="handleSelect"
    >
      <el-menu-item index="photo">
        <i class="el-icon-thumb"></i>
        <span slot="title">照片</span>
      </el-menu-item>

      <el-menu-item index="money">
        <i class="el-icon-location"></i>
        <span slot="title">发财</span>
      </el-menu-item>

      <el-menu-item index="health">
        <i class="el-icon-menu"></i>
        <span slot="title">健康</span>
      </el-menu-item>
      <el-menu-item index="happy">
        <i class="el-icon-document"></i>
        <span slot="title">快乐</span>
      </el-menu-item>
      <el-menu-item index="lunck">
        <i class="el-icon-setting"></i>
        <span slot="title">好运</span>
      </el-menu-item>

      <el-menu-item index="time">
        <i class="el-icon-thumb"></i>
        <span slot="title">时光</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "Aside",
  props: {},
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    handleSelect(key, keyPath) {
      // console.log("1111", key);

      this.$router.push({ path: key });
    },
  },
};
</script>

<style scoped>
.el-menu-vertical-demo {
  opacity: 0.8;
}
.el-menu-item {
  height: 60px;
  border: 1px solid #b7e5f5 !important;
  color: #000;
}
</style>
